<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改康熙字典')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-kangxizi-edit" th:object="${kangxiZi}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">繁体：</label>
                <div class="col-sm-8">
                    <input name="fanti" th:field="*{fanti}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">异体：</label>
                <div class="col-sm-8">
                    <input name="yiti" th:field="*{yiti}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拼音：</label>
                <div class="col-sm-8">
                    <input name="pinyin" th:field="*{pinyin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">注音：</label>
                <div class="col-sm-8">
                    <input name="zhuyin" th:field="*{zhuyin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部首：</label>
                <div class="col-sm-8">
                    <input name="bushou" th:field="*{bushou}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部首笔画：</label>
                <div class="col-sm-8">
                    <input name="bushouBihua" th:field="*{bushouBihua}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">总笔画：</label>
                <div class="col-sm-8">
                    <input name="zhongBihua" th:field="*{zhongBihua}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">康熙笔划：</label>
                <div class="col-sm-8">
                    <input name="kangxiBihua" th:field="*{kangxiBihua}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五笔86：</label>
                <div class="col-sm-8">
                    <input name="wubi86" th:field="*{wubi86}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五笔98：</label>
                <div class="col-sm-8">
                    <input name="wubi98" th:field="*{wubi98}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓颉：</label>
                <div class="col-sm-8">
                    <input name="cangjie" th:field="*{cangjie}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">四角号码：</label>
                <div class="col-sm-8">
                    <input name="sijiao" th:field="*{sijiao}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">unicode：</label>
                <div class="col-sm-8">
                    <input name="unicode" th:field="*{unicode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">规范编码：</label>
                <div class="col-sm-8">
                    <input name="guifanCode" th:field="*{guifanCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">汉字五行：</label>
                <div class="col-sm-8">
                    <input name="hanziWuxing" th:field="*{hanziWuxing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">吉区寓意：</label>
                <div class="col-sm-8">
                    <input name="jixiong" th:field="*{jixiong}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">常用字：</label>
                <div class="col-sm-8">
                    <input name="changYong" th:field="*{changYong}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">姓名学：</label>
                <div class="col-sm-8">
                    <input name="xingmingXue" th:field="*{xingmingXue}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">字典索引：</label>
                <div class="col-sm-8">
                    <input name="kangxiIndex" th:field="*{kangxiIndex}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dict/kangxizi";
        $("#form-kangxizi-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-kangxizi-edit').serialize());
            }
        }
    </script>
</body>
</html>